package pojo;

import java.util.ArrayList;
import java.util.List;

public class TradeMetaDataExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TradeMetaDataExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andKeyIsNull() {
            addCriterion("KEY is null");
            return (Criteria) this;
        }

        public Criteria andKeyIsNotNull() {
            addCriterion("KEY is not null");
            return (Criteria) this;
        }

        public Criteria andKeyEqualTo(String value) {
            addCriterion("KEY =", value, "key");
            return (Criteria) this;
        }

        public Criteria andKeyNotEqualTo(String value) {
            addCriterion("KEY <>", value, "key");
            return (Criteria) this;
        }

        public Criteria andKeyGreaterThan(String value) {
            addCriterion("KEY >", value, "key");
            return (Criteria) this;
        }

        public Criteria andKeyGreaterThanOrEqualTo(String value) {
            addCriterion("KEY >=", value, "key");
            return (Criteria) this;
        }

        public Criteria andKeyLessThan(String value) {
            addCriterion("KEY <", value, "key");
            return (Criteria) this;
        }

        public Criteria andKeyLessThanOrEqualTo(String value) {
            addCriterion("KEY <=", value, "key");
            return (Criteria) this;
        }

        public Criteria andKeyLike(String value) {
            addCriterion("KEY like", value, "key");
            return (Criteria) this;
        }

        public Criteria andKeyNotLike(String value) {
            addCriterion("KEY not like", value, "key");
            return (Criteria) this;
        }

        public Criteria andKeyIn(List<String> values) {
            addCriterion("KEY in", values, "key");
            return (Criteria) this;
        }

        public Criteria andKeyNotIn(List<String> values) {
            addCriterion("KEY not in", values, "key");
            return (Criteria) this;
        }

        public Criteria andKeyBetween(String value1, String value2) {
            addCriterion("KEY between", value1, value2, "key");
            return (Criteria) this;
        }

        public Criteria andKeyNotBetween(String value1, String value2) {
            addCriterion("KEY not between", value1, value2, "key");
            return (Criteria) this;
        }

        public Criteria andActseqIsNull() {
            addCriterion("ACTSEQ is null");
            return (Criteria) this;
        }

        public Criteria andActseqIsNotNull() {
            addCriterion("ACTSEQ is not null");
            return (Criteria) this;
        }

        public Criteria andActseqEqualTo(Long value) {
            addCriterion("ACTSEQ =", value, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqNotEqualTo(Long value) {
            addCriterion("ACTSEQ <>", value, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqGreaterThan(Long value) {
            addCriterion("ACTSEQ >", value, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqGreaterThanOrEqualTo(Long value) {
            addCriterion("ACTSEQ >=", value, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqLessThan(Long value) {
            addCriterion("ACTSEQ <", value, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqLessThanOrEqualTo(Long value) {
            addCriterion("ACTSEQ <=", value, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqIn(List<Long> values) {
            addCriterion("ACTSEQ in", values, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqNotIn(List<Long> values) {
            addCriterion("ACTSEQ not in", values, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqBetween(Long value1, Long value2) {
            addCriterion("ACTSEQ between", value1, value2, "actseq");
            return (Criteria) this;
        }

        public Criteria andActseqNotBetween(Long value1, Long value2) {
            addCriterion("ACTSEQ not between", value1, value2, "actseq");
            return (Criteria) this;
        }

        public Criteria andOffsetIsNull() {
            addCriterion("OFFSET is null");
            return (Criteria) this;
        }

        public Criteria andOffsetIsNotNull() {
            addCriterion("OFFSET is not null");
            return (Criteria) this;
        }

        public Criteria andOffsetEqualTo(Long value) {
            addCriterion("OFFSET =", value, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetNotEqualTo(Long value) {
            addCriterion("OFFSET <>", value, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetGreaterThan(Long value) {
            addCriterion("OFFSET >", value, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetGreaterThanOrEqualTo(Long value) {
            addCriterion("OFFSET >=", value, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetLessThan(Long value) {
            addCriterion("OFFSET <", value, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetLessThanOrEqualTo(Long value) {
            addCriterion("OFFSET <=", value, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetIn(List<Long> values) {
            addCriterion("OFFSET in", values, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetNotIn(List<Long> values) {
            addCriterion("OFFSET not in", values, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetBetween(Long value1, Long value2) {
            addCriterion("OFFSET between", value1, value2, "offset");
            return (Criteria) this;
        }

        public Criteria andOffsetNotBetween(Long value1, Long value2) {
            addCriterion("OFFSET not between", value1, value2, "offset");
            return (Criteria) this;
        }

        public Criteria andXidIsNull() {
            addCriterion("XID is null");
            return (Criteria) this;
        }

        public Criteria andXidIsNotNull() {
            addCriterion("XID is not null");
            return (Criteria) this;
        }

        public Criteria andXidEqualTo(String value) {
            addCriterion("XID =", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidNotEqualTo(String value) {
            addCriterion("XID <>", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidGreaterThan(String value) {
            addCriterion("XID >", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidGreaterThanOrEqualTo(String value) {
            addCriterion("XID >=", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidLessThan(String value) {
            addCriterion("XID <", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidLessThanOrEqualTo(String value) {
            addCriterion("XID <=", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidLike(String value) {
            addCriterion("XID like", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidNotLike(String value) {
            addCriterion("XID not like", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidIn(List<String> values) {
            addCriterion("XID in", values, "xid");
            return (Criteria) this;
        }

        public Criteria andXidNotIn(List<String> values) {
            addCriterion("XID not in", values, "xid");
            return (Criteria) this;
        }

        public Criteria andXidBetween(String value1, String value2) {
            addCriterion("XID between", value1, value2, "xid");
            return (Criteria) this;
        }

        public Criteria andXidNotBetween(String value1, String value2) {
            addCriterion("XID not between", value1, value2, "xid");
            return (Criteria) this;
        }

        public Criteria andTableNameIsNull() {
            addCriterion("TABLE_NAME is null");
            return (Criteria) this;
        }

        public Criteria andTableNameIsNotNull() {
            addCriterion("TABLE_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andTableNameEqualTo(String value) {
            addCriterion("TABLE_NAME =", value, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameNotEqualTo(String value) {
            addCriterion("TABLE_NAME <>", value, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameGreaterThan(String value) {
            addCriterion("TABLE_NAME >", value, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameGreaterThanOrEqualTo(String value) {
            addCriterion("TABLE_NAME >=", value, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameLessThan(String value) {
            addCriterion("TABLE_NAME <", value, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameLessThanOrEqualTo(String value) {
            addCriterion("TABLE_NAME <=", value, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameLike(String value) {
            addCriterion("TABLE_NAME like", value, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameNotLike(String value) {
            addCriterion("TABLE_NAME not like", value, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameIn(List<String> values) {
            addCriterion("TABLE_NAME in", values, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameNotIn(List<String> values) {
            addCriterion("TABLE_NAME not in", values, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameBetween(String value1, String value2) {
            addCriterion("TABLE_NAME between", value1, value2, "tableName");
            return (Criteria) this;
        }

        public Criteria andTableNameNotBetween(String value1, String value2) {
            addCriterion("TABLE_NAME not between", value1, value2, "tableName");
            return (Criteria) this;
        }

        public Criteria andOpIsNull() {
            addCriterion("OP is null");
            return (Criteria) this;
        }

        public Criteria andOpIsNotNull() {
            addCriterion("OP is not null");
            return (Criteria) this;
        }

        public Criteria andOpEqualTo(Short value) {
            addCriterion("OP =", value, "op");
            return (Criteria) this;
        }

        public Criteria andOpNotEqualTo(Short value) {
            addCriterion("OP <>", value, "op");
            return (Criteria) this;
        }

        public Criteria andOpGreaterThan(Short value) {
            addCriterion("OP >", value, "op");
            return (Criteria) this;
        }

        public Criteria andOpGreaterThanOrEqualTo(Short value) {
            addCriterion("OP >=", value, "op");
            return (Criteria) this;
        }

        public Criteria andOpLessThan(Short value) {
            addCriterion("OP <", value, "op");
            return (Criteria) this;
        }

        public Criteria andOpLessThanOrEqualTo(Short value) {
            addCriterion("OP <=", value, "op");
            return (Criteria) this;
        }

        public Criteria andOpIn(List<Short> values) {
            addCriterion("OP in", values, "op");
            return (Criteria) this;
        }

        public Criteria andOpNotIn(List<Short> values) {
            addCriterion("OP not in", values, "op");
            return (Criteria) this;
        }

        public Criteria andOpBetween(Short value1, Short value2) {
            addCriterion("OP between", value1, value2, "op");
            return (Criteria) this;
        }

        public Criteria andOpNotBetween(Short value1, Short value2) {
            addCriterion("OP not between", value1, value2, "op");
            return (Criteria) this;
        }

        public Criteria andJsTimeIsNull() {
            addCriterion("JS_TIME is null");
            return (Criteria) this;
        }

        public Criteria andJsTimeIsNotNull() {
            addCriterion("JS_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andJsTimeEqualTo(String value) {
            addCriterion("JS_TIME =", value, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeNotEqualTo(String value) {
            addCriterion("JS_TIME <>", value, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeGreaterThan(String value) {
            addCriterion("JS_TIME >", value, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeGreaterThanOrEqualTo(String value) {
            addCriterion("JS_TIME >=", value, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeLessThan(String value) {
            addCriterion("JS_TIME <", value, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeLessThanOrEqualTo(String value) {
            addCriterion("JS_TIME <=", value, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeLike(String value) {
            addCriterion("JS_TIME like", value, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeNotLike(String value) {
            addCriterion("JS_TIME not like", value, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeIn(List<String> values) {
            addCriterion("JS_TIME in", values, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeNotIn(List<String> values) {
            addCriterion("JS_TIME not in", values, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeBetween(String value1, String value2) {
            addCriterion("JS_TIME between", value1, value2, "jsTime");
            return (Criteria) this;
        }

        public Criteria andJsTimeNotBetween(String value1, String value2) {
            addCriterion("JS_TIME not between", value1, value2, "jsTime");
            return (Criteria) this;
        }

        public Criteria andOccuDateIsNull() {
            addCriterion("OCCU_DATE is null");
            return (Criteria) this;
        }

        public Criteria andOccuDateIsNotNull() {
            addCriterion("OCCU_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andOccuDateEqualTo(String value) {
            addCriterion("OCCU_DATE =", value, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateNotEqualTo(String value) {
            addCriterion("OCCU_DATE <>", value, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateGreaterThan(String value) {
            addCriterion("OCCU_DATE >", value, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateGreaterThanOrEqualTo(String value) {
            addCriterion("OCCU_DATE >=", value, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateLessThan(String value) {
            addCriterion("OCCU_DATE <", value, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateLessThanOrEqualTo(String value) {
            addCriterion("OCCU_DATE <=", value, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateLike(String value) {
            addCriterion("OCCU_DATE like", value, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateNotLike(String value) {
            addCriterion("OCCU_DATE not like", value, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateIn(List<String> values) {
            addCriterion("OCCU_DATE in", values, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateNotIn(List<String> values) {
            addCriterion("OCCU_DATE not in", values, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateBetween(String value1, String value2) {
            addCriterion("OCCU_DATE between", value1, value2, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuDateNotBetween(String value1, String value2) {
            addCriterion("OCCU_DATE not between", value1, value2, "occuDate");
            return (Criteria) this;
        }

        public Criteria andOccuTimeIsNull() {
            addCriterion("OCCU_TIME is null");
            return (Criteria) this;
        }

        public Criteria andOccuTimeIsNotNull() {
            addCriterion("OCCU_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andOccuTimeEqualTo(String value) {
            addCriterion("OCCU_TIME =", value, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeNotEqualTo(String value) {
            addCriterion("OCCU_TIME <>", value, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeGreaterThan(String value) {
            addCriterion("OCCU_TIME >", value, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeGreaterThanOrEqualTo(String value) {
            addCriterion("OCCU_TIME >=", value, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeLessThan(String value) {
            addCriterion("OCCU_TIME <", value, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeLessThanOrEqualTo(String value) {
            addCriterion("OCCU_TIME <=", value, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeLike(String value) {
            addCriterion("OCCU_TIME like", value, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeNotLike(String value) {
            addCriterion("OCCU_TIME not like", value, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeIn(List<String> values) {
            addCriterion("OCCU_TIME in", values, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeNotIn(List<String> values) {
            addCriterion("OCCU_TIME not in", values, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeBetween(String value1, String value2) {
            addCriterion("OCCU_TIME between", value1, value2, "occuTime");
            return (Criteria) this;
        }

        public Criteria andOccuTimeNotBetween(String value1, String value2) {
            addCriterion("OCCU_TIME not between", value1, value2, "occuTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}